using System;

namespace Book.Blog.Core.Entities.Statistics
{
    public class UserAction : BaseEntity
    {
        public required string ActionType { get; set; }  // Like, Comment, Share, etc.
        public required string EntityType { get; set; }  // Post, Comment, etc.
        public required Guid EntityId { get; set; }
        public string? IpAddress { get; set; }
        public Guid? UserId { get; set; }
        public string? SessionId { get; set; }
        public string? AdditionalData { get; set; }  // JSON格式的额外数据

        // 导航属性
        public virtual User? User { get; set; }
    }
} 